package com.simple.auth.event;

import com.simple.auth.enums.AuthType;
import com.simple.framework.core.domain.BaseUser;
import lombok.Data;
import org.springframework.context.ApplicationEvent;

/**
 * @Description 登录成功事件
 * @Author xiaoke
 * @Date 2024/8/10 18:00
 * @Version 1.0
 */
@Data
public class AuthSuccessEvent extends ApplicationEvent {
    private BaseUser baseUser;

    private AuthType authType;

    public AuthSuccessEvent(Object source, BaseUser baseUser, AuthType authType) {
        super(source);
        this.baseUser = baseUser;
        this.authType = authType;
    }
}
